#pragma once

#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <stdbool.h>

#define MAX_SIZE 10

typedef int CirQueueDataType;

typedef struct cir_queue
{	
	CirQueueDataType data[MAX_SIZE];
	int front;
	int rear;
}CirQueue;

void CirQueueInit(CirQueue* pcq);
void CirQueueDestory(CirQueue* pcq);
bool CirQueueIsEmpty(CirQueue* pcq);
bool CirQueueIsFull(CirQueue* pcq);
void CirQueuePush(CirQueue* pcq, CirQueueDataType x);
void CirQueuePop(CirQueue* pcq);
CirQueueDataType CirQueueFront(CirQueue* pcq);
CirQueueDataType CirQueueBack(CirQueue* pcq);
int CirQueueSize(CirQueue* pcq);



